From: Juanma Barranquero Date: Tue, 11 Feb 2003 23:45:21 +0000 (+0000) Subject: (makefile-font-lock-keywords): Fontify single character variable references, but X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~28315 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=bcffb8ae7304e113c5a8b6b65f9dc06587b1a67e;p=emacs.git (makefile-font-lock-keywords): Fontify single character variable references, but protect shell variables references. (makefile-mode): Make `$' be punctuation in font-lock-defaults. --- diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index 4d825f83239..98a3d460884 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el @@ -268,13 +268,16 @@ not be enclosed in { } or ( )." ;; Do dependencies. These get the function name face. (list makefile-dependency-regex 1 'font-lock-function-name-face) - ;; Variable references even in targets/strings/comments: + ;; Variable references even in targets/strings/comments. '("\\$[({]\\([-a-zA-Z0-9_.]+\\)[}):]" 1 font-lock-constant-face prepend) - ;; Automatic variable references. - '("\\$\\([@%\\)" 1 font-lock-reference-face prepend) '("\\$[({]\\([@%